package myschool.object.student;

public class BoyGirlTest {
    public static void main(String[] args){
        Girl girl = new Girl();
        Boy boy = new Boy();
        girl.setName("张三");
        boy.setName("李四");
        boy.setAge(22);
        System.out.println("女孩名为："+girl.getName());
        System.out.println("男孩名为："+boy.getNmae()+"\t年龄为："+boy.getAge());
        boy.marry(girl);
    }
}
